sqlalchemy query bilter by current month

46

sqlalchemy query bilter by current month -

from sqlalchemy import extract  

session.query(Event).filter(extract('year', Event.date)==2018).filter(extract('month', Event.date)==7).all()

Comments

Submit
0 Comments